package com.hongsen.cn.presenter;

import com.hongsen.cn.base.BaseModel;
import com.hongsen.cn.base.BaseObserver;
import com.hongsen.cn.base.BasePresenter;
import com.hongsen.cn.bean.BaseTitleBean;
import com.hongsen.cn.contract.WorkDescView;

public class WorkDescPersenter extends BasePresenter<WorkDescView> {

    public WorkDescPersenter(WorkDescView baseView) {
        super(baseView);
    }

    /**
     * 今日违规、加戴械具、动态人员、出所人员数量
     */
    public void getTitleInfo() {
        addDisposable(restApi.getTopPersonalData(), new BaseObserver(baseView) {
            @Override
            public void onSuccess(Object o) {
                BaseModel<BaseTitleBean> model = (BaseModel<BaseTitleBean>) o;
                //baseView.getTitleInfo(model.getData());
            }

            @Override
            public void onError(String msg) {
                //baseView.showError(msg);
            }
        });
    }

}
